/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testes;

import modelo.Professor;
import org.hibernate.classic.Session;
import persistence.HibernateUtil;
import persistence.ProfessorDao;

/**
 *
 * @author Sh4c4w
 */
public class Testes {
    
    static Session sessao = null;
    
    public static void main(String[] args) {
            
            Professor p = new Professor();
            p.setNome("Diego");
            ProfessorDao dao = new ProfessorDao();
            dao.add(p);
    }
    
}
